From 723c49a8b7eacc4d179e7caa82d218d03d32999f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Mon, 8 Jan 2018 16:56:43 +0100 Subject: [PATCH] location: Use translated reason string Gio now has API to look up localized strings from desktop files, so we can display a correctly translated reason where available. https://bugzilla.gnome.org/show_bug.cgi?id=779413 --- js/ui/status/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 13aa8a94e..ef91a460d 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -321,7 +321,7 @@ var AppAuthorizer = new Lang.Class({ _userAuthorizeApp: function() { let name = this._app.get_name(); let appInfo = this._app.get_app_info(); - let reason = appInfo.get_string("X-Geoclue-Reason"); + let reason = appInfo.get_locale_string("X-Geoclue-Reason"); this._showAppAuthDialog(name, reason); }, -- 2.39.5